package com.bjtu.douyin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjtu.common.pojo.User;
import com.bjtu.common.pojo.UserVideo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserVideoMapper extends BaseMapper<UserVideo> {
    @Select("SELECT COUNT(*) > 0 FROM user_video WHERE user_id = #{userId}")
    boolean existsByUserId(Integer userId);
}